package com.rxw.nutmall.oss.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.sql.Timestamp;

@Getter
@Setter
@TableName("oss_file")
@ApiModel(value = "File对象", description = "文件关联关系")
public class File implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("文件名")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty("存储类别")
    @TableField("oss_type")
    private String ossType;

    @ApiModelProperty("文件目录")
    @TableField("folder")
    private String folder;

    @ApiModelProperty("文件类别")
    @TableField("type")
    private String type;

    @ApiModelProperty("存储桶")
    @TableField("bucket")
    private String bucket;

    @ApiModelProperty("文件路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("是否删除 0已删除 1未删除")
    @TableField(value = "deleted")
    private Integer deleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time")
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time")
    private Timestamp updateTime;
}
